package com.cj.service;

import com.cj.pojo.Comment;
import com.cj.pojo.PageBean;
import java.util.List;

public interface CommentService {
    void add(Comment comment);
    
    void update(Comment comment);
    
    void delete(Long id);
    
    void batchDelete(List<Long> ids);
    
    PageBean<Comment> listByArticle(Long articleId, Integer pageNum, Integer pageSize);
    
    PageBean<Comment> listByUser(Long userId, Integer pageNum, Integer pageSize);
    
    void reply(Long parentId, Comment comment);
    
    void like(Long id);
    
    PageBean<Comment> listReplies(Long parentId, Integer pageNum, Integer pageSize);
}
